Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will...
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Thu, 1 Dec 2005 01:43:04 +0000 (02:43 +0100)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Thu, 1 Dec 2005 01:43:04 +0000 (02:43 +0100)
commit8d68c698752c120deab043ff371378e6954a9a29
tree9143016973ce681493d563d330b493e87eafd12f
parent33ea7cb0ee35ab75f1a1fbf1b62a5131f4d0a381
Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will return 'control_d', and be empty when read in a guest. This provides a convenient way to allow the root user to detect whether they're running in a guest or dom0, and e.g. gate whether to start xend. In future, when we add more fine grained capabilities we will add other details into this file.

Signed-off-by: ian@xensource.com
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c